<template>
<div class="btn-popup" @click="show">弹框测试</div>
</template>
<script>
 import popups from "./popups.js";
Vue.prototype.$rxPopup=new Vue.prototype.$rxConstructor.Mask({popups}).show;
export default {
    name:'popups',
    methods:{
        show(){
            this.$rxPopup('demo').then(function (res){
                console.log("确认")
            },function (res){
                console.log("取消")
            })
        }
    }
}
</script>
<style>
    .btn-popup {
        display: inline-block;
        padding: 10px 20px;
        border: 1px solid #cccccc;
        text-align: center;
        cursor: pointer;
    }
</style>


